package cn.changein.framework.model.setting.thirdInterfaceConfig.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 对接第三方接口的配置
 * </p>
 *

 * @since 2021-01-21
 */
@TableName("sys_third_interface_config")
@Data
public class ThirdInterfaceConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 地域ID
     */
    @TableField("region_id")
    private String regionId;

    /**
     * 秘钥ID
     */
    @TableField("access_key_id")
    private String accessKeyId;

    /**
     * 秘钥Key
     */
    @TableField("access_key_secret")
    private String accessKeySecret;

    /**
     * 访问Url
     */
    @TableField("url")
    private String url;

    /**
     * 签名名称
     */
    @TableField("sign_name")
    private String signName;

    /**
     * 模板ID
     */
    @TableField("template_code")
    private String templateCode;

    /**
     * 访问令牌
     */
    @TableField("access_token")
    private String accessToken;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 创建用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 修改用户
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 删除标记 0:正常 1:删除
     */
    @TableField("delete_flag")
    private Integer deleteFlag;

    /**
     * 状态:1.启用,2.禁用
     */
    @TableField("status")
    private Integer status;

    /**
     * 代码
     */
    @TableField("code")
    private String code;

    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;

    @Override
    public String toString() {
        return "ThirdInterfaceConfig{" +
                "id=" + id +
                ", regionId=" + regionId +
                ", accessKeyId=" + accessKeyId +
                ", accessKeySecret=" + accessKeySecret +
                ", url=" + url +
                ", signName=" + signName +
                ", templateCode=" + templateCode +
                ", accessToken=" + accessToken +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", createUser=" + createUser +
                ", updateUser=" + updateUser +
                ", deleteFlag=" + deleteFlag +
                ", status=" + status +
                ", code=" + code +
                "}";
    }
}
